package com.itheima.mm.service.impl;

import com.itheima.mm.dao.IndustryDao;
import com.itheima.mm.pojo.Industry;
import com.itheima.mm.service.IIndustryService;
import com.itheima.mm.utils.SqlSessionFactoryUtils;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;

/**
 * 包名:com.itheima.mm.service
 * 作者:Leevi
 * 日期2020-01-16  10:57
 */
@Service
public class IndustryService implements IIndustryService {
    @Autowired
    private IndustryDao industryDao;
    @Override
    public List<Industry> findAll() throws IOException {
        return industryDao.findAll();
    }
}
